package org.jeecg.modules.tls.rsmg.rsfile.service;

import org.jeecg.modules.tls.rsmg.rsfile.entity.RsFile;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.tls.rsmg.viewmodel.FileAndFolderListVM;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @Description: rs_file
 * @Author: jeecg-boot
 * @Date:   2022-07-23
 * @Version: V1.0
 */
public interface IRsFileService extends IService<RsFile> {

    Boolean uploadFile(MultipartFile file, String folderId, String userId,String remark);

    //删除文件
    Boolean deleteFile(String id);

    //重命名文件
    Boolean reNameFile(String id,String newName);

    List<RsFile> getFileList(String folderId,String filetype,String name);

    List<FileAndFolderListVM> getFileAndFolder(String id,String filetype,String name);

    String uploadImg(MultipartFile file);

}
